<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

use app\model\member_data;
use app\model\member_auth;
use app\model\member_money;
use app\model\member_position;

/**
 * @mixin think\Model
 */
class member extends Model
{
    protected $pk = 'member_id';

    public function userData()
    {
        return $this->hasOne( member_data::class );
    }

    public function userAuth()
    {
        return $this->hasOne( member_auth::class, 'auth_id' );
    }

    public function userMoney()
    {
        return $this->hasOne( member_money::class );
    }

    public function userPosition()
    {
        return $this->hasOne( member_position::class, 'position_id' );
    }
}
